﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using Autodesk.Revit.Attributes;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI;
using Autodesk.Revit.UI.Selection;
using YArchitech.DataModel;
using YArchitech.HVAC;
using YArchitech.Revit;

namespace YArchitech.Plumbing
{
	[Transaction(TransactionMode.Manual)]
	[Regeneration(RegenerationOption.Manual)]
	public class LayPumpBaseCommand : HYNoTranExternalCommand
	{
		public override void FilterProcess()
		{
            base.FilterViewType.Add((ViewType)1);
            base.FilterViewType.Add((ViewType)2);
            base.FilterViewType.Add((ViewType)4);
			base.FilterProcess();
		}

		public double GetHeightOfBase(bool isDamp, HYPumpData pumpdata)
		{
			double result = 0.0;
			if (isDamp)
			{
				Dictionary<string, string> source = new Dictionary<string, string>();
				source = HYPumpDataManager.ConvertStringToDic(pumpdata.strDampBaseParam);
				if (pumpdata.strFitRvtName == "1" || pumpdata.strFitRvtName == "2")
				{
					string value = source.FirstOrDefault((KeyValuePair<string, string> q) => q.Key == "H").Value;
					if (value != null && value != "")
					{
						result = (double.Parse(value) + 20.0) / 1000.0;
					}
				}
				else
				{
					string value2 = source.FirstOrDefault((KeyValuePair<string, string> q) => q.Key == "Ha").Value;
					string value3 = source.FirstOrDefault((KeyValuePair<string, string> q) => q.Key == "h").Value;
					if (value2 != null && value2 != "" && value3 != null && value3 != "")
					{
						result = (double.Parse(value2) + double.Parse(value3) + 20.0) / 1000.0;
					}
				}
			}
			else
			{
				Dictionary<string, string> source2 = new Dictionary<string, string>();
				source2 = HYPumpDataManager.ConvertStringToDic(pumpdata.strBaseParam);
				if (pumpdata.strFitRvtName == "1" || pumpdata.strFitRvtName == "2")
				{
					string value4 = source2.FirstOrDefault((KeyValuePair<string, string> q) => q.Key == "H").Value;
					if (value4 != null && value4 != "")
					{
						result = double.Parse(value4) / 1000.0;
					}
				}
				else
				{
					string value5 = source2.FirstOrDefault((KeyValuePair<string, string> q) => q.Key == "Ha").Value;
					string value6 = source2.FirstOrDefault((KeyValuePair<string, string> q) => q.Key == "h").Value;
					if (value5 != null && value5 != "" && value6 != null && value6 != "")
					{
						result = (double.Parse(value5) + double.Parse(value6)) / 1000.0;
					}
				}
			}
			return result;
		}

		public override Result HYExecute()
		{
			ISelectionFilter selectionFilter = new EquipmentSelectionFilter();
			HYPumpData hypumpData = new HYPumpData();
			Reference reference = base.Sel.PickObject(Autodesk.Revit.UI.Selection.ObjectType.Element, selectionFilter, "请选择一个水泵");
			Element element = base.Doc.GetElement(reference);
			if (element.GetParameter("水泵型号") == null || element.GetParameter("生产厂家") == null || element.GetParameter("厂家自定类型名") == null)
			{
				return Autodesk.Revit.UI.Result.Cancelled;
			}
			hypumpData.StrSpecification = element.GetParameter("水泵型号").AsString();
			hypumpData.StrFactory = element.GetParameter("生产厂家").AsString();
			hypumpData.StrTypeInFactory = element.GetParameter("厂家自定类型名").AsString();
			FormLayPumpBase formLayPumpBase = new FormLayPumpBase(hypumpData);
			HYPumpDataReader hypumpDataReader = new HYPumpDataReader();
			DialogResult dialogResult;
			for (;;)
			{
				dialogResult = formLayPumpBase.ShowDialog();
				if (dialogResult == DialogResult.Abort)
				{
					try
					{
						reference = base.Sel.PickObject(Autodesk.Revit.UI.Selection.ObjectType.Element, selectionFilter, "请选择一个水泵");
						element = base.Doc.GetElement(reference);
						if (element.GetParameter("水泵型号") != null && element.GetParameter("生产厂家") != null && element.GetParameter("厂家自定类型名") != null)
						{
							hypumpData.StrSpecification = element.GetParameter("水泵型号").AsString();
							hypumpData.StrFactory = element.GetParameter("生产厂家").AsString();
							hypumpData.StrTypeInFactory = element.GetParameter("厂家自定类型名").AsString();
						}
						formLayPumpBase.RefreshThePumpdata(hypumpData);
						continue;
					}
					catch (Exception)
					{
						continue;
					}
					break;
				}
				break;
			}
			if (dialogResult != DialogResult.OK)
			{
				return Autodesk.Revit.UI.Result.Succeeded;
			}
			HYEquipmentCommon hyequipmentCommon = new HYEquipmentCommon();
			ICollection<ElementId> allFamilyInstance = hyequipmentCommon.GetAllFamilyInstance(base.Doc, BuiltInCategory.OST_SpecialityEquipment);
			FamilySymbol familySymbol = null;
			familySymbol = hypumpDataReader.GetFamilySymbolByFamilyNameInTran(formLayPumpBase.family, "PumpBase", base.Doc, BuiltInCategory.OST_SpecialityEquipment);
			if (!formLayPumpBase.isPutDownThePump)
			{
				if (familySymbol != null)
				{
					try
					{
						base.UiDoc.PromptForFamilyInstancePlacement(familySymbol);
					}
					catch (Exception)
					{
					}
					base.UiDoc.PromptForFamilyInstancePlacement(familySymbol);
				}
				Transaction transaction = new Transaction(base.Doc, "设置参数");
				transaction.Start();
				ICollection<ElementId> allFamilyInstance2 = hyequipmentCommon.GetAllFamilyInstance(base.Doc, BuiltInCategory.OST_SpecialityEquipment);
				new List<ElementId>();
				foreach (ElementId item in allFamilyInstance.Intersect(allFamilyInstance2))
				{
					allFamilyInstance2.Remove(item);
				}
				foreach (ElementId elementId in allFamilyInstance2)
				{
					Element elementById = base.Doc.GetElementById(elementId);
					Dictionary<string, string> dictionary = new Dictionary<string, string>();
					HYPumpDataManager.GetSpecPumpData(ref hypumpData);
					if (formLayPumpBase.isDamp)
					{
						dictionary = this.GetDampBaseParaFromDBInChinese(hypumpData);
					}
					else
					{
						dictionary = this.GetBaseParaFromDBInChinese(hypumpData);
					}
					if (dictionary.Count > 0)
					{
						this.SetFamilyPara(dictionary, elementById);
					}
					SetParaForInstance.SetOffsetForInstance(elementById, formLayPumpBase.offset, base.Doc);
				}
				transaction.Commit();
			}
			else
			{
				double num = 0.0;
				if (element.GetParameter(BuiltInParameter.INSTANCE_FREE_HOST_OFFSET_PARAM) != null)
				{
					num = element.GetParameter(BuiltInParameter.INSTANCE_FREE_HOST_OFFSET_PARAM).AsDouble() * 304.8 / 1000.0;
				}
				ConnectHelper connectHelper = new ConnectHelper();
				XYZ point = (element.Location as LocationPoint).Point;
				List<XYZ> list = new List<XYZ>();
				list.Add(point);
				Transaction transaction2 = new Transaction(base.Doc, "设置参数");
				transaction2.Start();
				ElementSet elementSet = connectHelper.LayFamilyInstance(list, familySymbol, base.Doc.ActiveView.GenLevel, 0, base.Doc);
				base.Doc.Regenerate();
				double heightOfBase = this.GetHeightOfBase(formLayPumpBase.isDamp, hypumpData);
				double offset = num - heightOfBase;
				foreach (object obj in elementSet)
				{
					Element element2 = (Element)obj;
					Dictionary<string, string> dictionary2 = new Dictionary<string, string>();
					HYPumpDataManager.GetSpecPumpData(ref hypumpData);
					if (formLayPumpBase.isDamp)
					{
						dictionary2 = this.GetDampBaseParaFromDBInChinese(hypumpData);
					}
					else
					{
						dictionary2 = this.GetBaseParaFromDBInChinese(hypumpData);
					}
					if (dictionary2.Count > 0)
					{
						this.SetFamilyPara(dictionary2, element2);
					}
					SetParaForInstance.SetOffsetForInstance(element2, offset, base.Doc);
				}
				transaction2.Commit();
			}
			return Autodesk.Revit.UI.Result.Succeeded;
		}

		public void SetFamilyPara(Dictionary<string, string> dicBase, Element ele)
		{
			foreach (KeyValuePair<string, string> keyValuePair in dicBase)
			{
				Parameter parameter = ele.GetParameter(keyValuePair.Key);
				string value = keyValuePair.Value;
				if (parameter != null && value != "" && value != null)
				{
					if (keyValuePair.Key == "减震垫规格")
					{
						parameter.Set(value);
					}
					else
					{
						parameter.Set(double.Parse(value) / 304.8);
					}
				}
			}
		}

		public Dictionary<string, string> GetBaseParaFromDBInChinese(HYPumpData pumpdata)
		{
			Dictionary<string, string> dictionary = HYPumpDataManager.ConvertStringToDic(pumpdata.strBaseParam);
			Dictionary<string, string> dictionary2 = new Dictionary<string, string>();
			if (pumpdata.strFitRvtName == "1")
			{
				using (Dictionary<string, string>.Enumerator enumerator = dictionary.GetEnumerator())
				{
					while (enumerator.MoveNext())
					{
						KeyValuePair<string, string> keyValuePair = enumerator.Current;
						string key = keyValuePair.Key;
						uint num = YArchitech.Revit.PrivateImplementationDetails.ComputeStringHash(key);
						if (num <= 1530585635u)
						{
							if (num <= 383896283u)
							{
								if (num != 199048284u)
								{
									if (num == 383896283u)
									{
										if (key == "L2")
										{
											dictionary2.Add("螺栓孔边距", keyValuePair.Value);
										}
									}
								}
								else if (key == "B1")
								{
									dictionary2.Add("螺栓孔宽距", keyValuePair.Value);
								}
							}
							else if (num != 400673902u)
							{
								if (num != 1463475159u)
								{
									if (num == 1530585635u)
									{
										if (key == "hf")
										{
											dictionary2.Add("地上混凝土高度", keyValuePair.Value);
										}
									}
								}
								else if (key == "hz")
								{
									dictionary2.Add("找平层厚度", keyValuePair.Value);
								}
							}
							else if (key == "L1")
							{
								dictionary2.Add("螺栓孔长距", keyValuePair.Value);
							}
						}
						else if (num <= 3059570457u)
						{
							if (num != 2414576562u)
							{
								if (num == 3059570457u)
								{
									if (key == "LSK")
									{
										dictionary2.Add("螺栓孔边长", keyValuePair.Value);
									}
								}
							}
							else if (key == "H1")
							{
								dictionary2.Add("螺栓孔深", keyValuePair.Value);
							}
						}
						else if (num != 3339451269u)
						{
							if (num != 3373006507u)
							{
								if (num == 3440116983u)
								{
									if (key == "H")
									{
										dictionary2.Add("基础高度", keyValuePair.Value);
									}
								}
							}
							else if (key == "L")
							{
								dictionary2.Add("基础长度", keyValuePair.Value);
							}
						}
						else if (key == "B")
						{
							dictionary2.Add("基础宽度", keyValuePair.Value);
						}
					}
					return dictionary2;
				}
			}
			if (pumpdata.strFitRvtName == "2")
			{
				using (Dictionary<string, string>.Enumerator enumerator = dictionary.GetEnumerator())
				{
					while (enumerator.MoveNext())
					{
						KeyValuePair<string, string> keyValuePair2 = enumerator.Current;
						string key = keyValuePair2.Key;
						uint num = YArchitech.Revit.PrivateImplementationDetails.ComputeStringHash(key);
						if (num <= 1463475159u)
						{
							if (num <= 367118664u)
							{
								if (num != 199048284u)
								{
									if (num != 249381141u)
									{
										if (num == 367118664u)
										{
											if (key == "L3")
											{
												dictionary2.Add("螺栓孔长距", keyValuePair2.Value);
											}
										}
									}
									else if (key == "B2")
									{
										dictionary2.Add("螺栓孔宽距", keyValuePair2.Value);
									}
								}
								else if (key == "B1")
								{
									dictionary2.Add("电机基础宽度", keyValuePair2.Value);
								}
							}
							else if (num != 383896283u)
							{
								if (num != 484561997u)
								{
									if (num == 1463475159u)
									{
										if (key == "hz")
										{
											dictionary2.Add("找平层厚度", keyValuePair2.Value);
										}
									}
								}
								else if (key == "L4")
								{
									dictionary2.Add("螺栓孔长距2", keyValuePair2.Value);
								}
							}
							else if (key == "L2")
							{
								dictionary2.Add("螺栓孔边距", keyValuePair2.Value);
							}
						}
						else if (num <= 3059570457u)
						{
							if (num != 1530585635u)
							{
								if (num != 2414576562u)
								{
									if (num == 3059570457u)
									{
										if (key == "LSK")
										{
											dictionary2.Add("螺栓孔边长", keyValuePair2.Value);
										}
									}
								}
								else if (key == "H1")
								{
									dictionary2.Add("螺栓孔深", keyValuePair2.Value);
								}
							}
							else if (key == "hf")
							{
								dictionary2.Add("地面以上高度", keyValuePair2.Value);
							}
						}
						else if (num <= 3373006507u)
						{
							if (num != 3339451269u)
							{
								if (num == 3373006507u)
								{
									if (key == "L")
									{
										dictionary2.Add("基础长度", keyValuePair2.Value);
									}
								}
							}
							else if (key == "B")
							{
								dictionary2.Add("基础宽度", keyValuePair2.Value);
							}
						}
						else if (num != 3440116983u)
						{
							if (num == 3775669363u)
							{
								if (key == "d")
								{
									dictionary2.Add("螺栓直径", keyValuePair2.Value);
								}
							}
						}
						else if (key == "H")
						{
							dictionary2.Add("基础高度", keyValuePair2.Value);
						}
					}
					return dictionary2;
				}
			}
			if (pumpdata.strFitRvtName == "3")
			{
				using (Dictionary<string, string>.Enumerator enumerator = dictionary.GetEnumerator())
				{
					while (enumerator.MoveNext())
					{
						KeyValuePair<string, string> keyValuePair3 = enumerator.Current;
						string key = keyValuePair3.Key;
						uint num = YArchitech.Revit.PrivateImplementationDetails.ComputeStringHash(key);
						if (num <= 3059570457u)
						{
							if (num <= 2402036085u)
							{
								if (num != 1609250850u)
								{
									if (num == 2402036085u)
									{
										if (key == "b2")
										{
											dictionary2.Add("基础宽度", keyValuePair3.Value);
										}
									}
								}
								else if (key == "Ha")
								{
									dictionary2.Add("基础高度", keyValuePair3.Value);
								}
							}
							else if (num != 2403021823u)
							{
								if (num == 3059570457u)
								{
									if (key == "LSK")
									{
										dictionary2.Add("螺栓孔边长", keyValuePair3.Value);
									}
								}
							}
							else if (key == "h2")
							{
								dictionary2.Add("螺栓孔深", keyValuePair3.Value);
							}
						}
						else if (num <= 3775669363u)
						{
							if (num != 3339451269u)
							{
								if (num == 3775669363u)
								{
									if (key == "d")
									{
										dictionary2.Add("螺栓直径", keyValuePair3.Value);
									}
								}
							}
							else if (key == "B")
							{
								dictionary2.Add("底座宽度", keyValuePair3.Value);
							}
						}
						else if (num != 3876335077u)
						{
							if (num == 3977000791u)
							{
								if (key == "h")
								{
									dictionary2.Add("底座板厚度", keyValuePair3.Value);
								}
							}
						}
						else if (key == "b")
						{
							dictionary2.Add("螺栓孔距", keyValuePair3.Value);
						}
					}
					return dictionary2;
				}
			}
			if (pumpdata.strFitRvtName == "4")
			{
				foreach (KeyValuePair<string, string> keyValuePair4 in dictionary)
				{
					string key = keyValuePair4.Key;
					uint num = YArchitech.Revit.PrivateImplementationDetails.ComputeStringHash(key);
					if (num <= 3059570457u)
					{
						if (num <= 2402036085u)
						{
							if (num != 1609250850u)
							{
								if (num == 2402036085u)
								{
									if (key == "b2")
									{
										dictionary2.Add("基础宽度", keyValuePair4.Value);
									}
								}
							}
							else if (key == "Ha")
							{
								dictionary2.Add("基础高度", keyValuePair4.Value);
							}
						}
						else if (num != 2403021823u)
						{
							if (num == 3059570457u)
							{
								if (key == "LSK")
								{
									dictionary2.Add("螺栓孔边长", keyValuePair4.Value);
								}
							}
						}
						else if (key == "h2")
						{
							dictionary2.Add("螺栓孔深", keyValuePair4.Value);
						}
					}
					else if (num <= 3775669363u)
					{
						if (num != 3339451269u)
						{
							if (num == 3775669363u)
							{
								if (key == "d")
								{
									dictionary2.Add("螺栓直径", keyValuePair4.Value);
								}
							}
						}
						else if (key == "B")
						{
							dictionary2.Add("底座直径", keyValuePair4.Value);
						}
					}
					else if (num != 3876335077u)
					{
						if (num == 3977000791u)
						{
							if (key == "h")
							{
								dictionary2.Add("底座板厚度", keyValuePair4.Value);
							}
						}
					}
					else if (key == "b")
					{
						dictionary2.Add("螺栓孔距", keyValuePair4.Value);
					}
				}
			}
			return dictionary2;
		}

		public Dictionary<string, string> GetDampBaseParaFromDBInChinese(HYPumpData pumpdata)
		{
			Dictionary<string, string> dictionary = HYPumpDataManager.ConvertStringToDic(pumpdata.strDampBaseParam);
			Dictionary<string, string> dictionary2 = new Dictionary<string, string>();
			if (pumpdata.strFitRvtName == "1")
			{
				using (Dictionary<string, string>.Enumerator enumerator = dictionary.GetEnumerator())
				{
					while (enumerator.MoveNext())
					{
						KeyValuePair<string, string> keyValuePair = enumerator.Current;
						string key = keyValuePair.Key;
						uint num = YArchitech.Revit.PrivateImplementationDetails.ComputeStringHash(key);
						if (num <= 1040194900u)
						{
							if (num <= 383896283u)
							{
								if (num != 199048284u)
								{
									if (num == 383896283u)
									{
										if (key == "L2")
										{
											dictionary2.Add("螺栓孔边距", keyValuePair.Value);
										}
									}
								}
								else if (key == "B1")
								{
									dictionary2.Add("螺栓孔宽距", keyValuePair.Value);
								}
							}
							else if (num != 400673902u)
							{
								if (num == 1040194900u)
								{
									if (key == "PS")
									{
										dictionary2.Add("减震垫规格", keyValuePair.Value);
									}
								}
							}
							else if (key == "L1")
							{
								dictionary2.Add("螺栓孔长距", keyValuePair.Value);
							}
						}
						else if (num <= 3339451269u)
						{
							if (num != 1530585635u)
							{
								if (num == 3339451269u)
								{
									if (key == "B")
									{
										dictionary2.Add("基础宽度", keyValuePair.Value);
									}
								}
							}
							else if (key == "hf")
							{
								dictionary2.Add("混凝土基础高度", keyValuePair.Value);
							}
						}
						else if (num != 3373006507u)
						{
							if (num != 3440116983u)
							{
								if (num == 3775669363u)
								{
									if (key == "d")
									{
										dictionary2.Add("螺栓直径", keyValuePair.Value);
									}
								}
							}
							else if (key == "H")
							{
								dictionary2.Add("基座高度", keyValuePair.Value);
							}
						}
						else if (key == "L")
						{
							dictionary2.Add("基础长度", keyValuePair.Value);
						}
					}
					return dictionary2;
				}
			}
			if (pumpdata.strFitRvtName == "2")
			{
				using (Dictionary<string, string>.Enumerator enumerator = dictionary.GetEnumerator())
				{
					while (enumerator.MoveNext())
					{
						KeyValuePair<string, string> keyValuePair2 = enumerator.Current;
						string key = keyValuePair2.Key;
						uint num = YArchitech.Revit.PrivateImplementationDetails.ComputeStringHash(key);
						if (num <= 484561997u)
						{
							if (num <= 249381141u)
							{
								if (num != 199048284u)
								{
									if (num == 249381141u)
									{
										if (key == "B2")
										{
											dictionary2.Add("水泵螺栓孔宽距", keyValuePair2.Value);
										}
									}
								}
								else if (key == "B1")
								{
									dictionary2.Add("电机螺栓孔距", keyValuePair2.Value);
								}
							}
							else if (num != 367118664u)
							{
								if (num != 383896283u)
								{
									if (num == 484561997u)
									{
										if (key == "L4")
										{
											dictionary2.Add("螺栓孔长距2", keyValuePair2.Value);
										}
									}
								}
								else if (key == "L2")
								{
									dictionary2.Add("螺栓孔边距", keyValuePair2.Value);
								}
							}
							else if (key == "L3")
							{
								dictionary2.Add("螺栓孔长距1", keyValuePair2.Value);
							}
						}
						else if (num <= 3339451269u)
						{
							if (num != 1040194900u)
							{
								if (num != 1530585635u)
								{
									if (num == 3339451269u)
									{
										if (key == "B")
										{
											dictionary2.Add("基础宽度", keyValuePair2.Value);
										}
									}
								}
								else if (key == "hf")
								{
									dictionary2.Add("混凝土基础高度", keyValuePair2.Value);
								}
							}
							else if (key == "PS")
							{
								dictionary2.Add("减震垫规格", keyValuePair2.Value);
							}
						}
						else if (num != 3373006507u)
						{
							if (num != 3440116983u)
							{
								if (num == 3775669363u)
								{
									if (key == "d")
									{
										dictionary2.Add("螺栓直径", keyValuePair2.Value);
									}
								}
							}
							else if (key == "H")
							{
								dictionary2.Add("基座高度", keyValuePair2.Value);
							}
						}
						else if (key == "L")
						{
							dictionary2.Add("基础长度", keyValuePair2.Value);
						}
					}
					return dictionary2;
				}
			}
			if (pumpdata.strFitRvtName == "3")
			{
				using (Dictionary<string, string>.Enumerator enumerator = dictionary.GetEnumerator())
				{
					while (enumerator.MoveNext())
					{
						KeyValuePair<string, string> keyValuePair3 = enumerator.Current;
						string key = keyValuePair3.Key;
						uint num = YArchitech.Revit.PrivateImplementationDetails.ComputeStringHash(key);
						if (num <= 3059570457u)
						{
							if (num <= 1609250850u)
							{
								if (num != 1040194900u)
								{
									if (num == 1609250850u)
									{
										if (key == "Ha")
										{
											dictionary2.Add("基础高度", keyValuePair3.Value);
										}
									}
								}
								else if (key == "PS")
								{
									dictionary2.Add("减震垫规格", keyValuePair3.Value);
								}
							}
							else if (num != 2403021823u)
							{
								if (num == 3059570457u)
								{
									if (key == "LSK")
									{
										dictionary2.Add("螺栓孔边长", keyValuePair3.Value);
									}
								}
							}
							else if (key == "h2")
							{
								dictionary2.Add("螺栓孔深", keyValuePair3.Value);
							}
						}
						else if (num <= 3775669363u)
						{
							if (num != 3339451269u)
							{
								if (num == 3775669363u)
								{
									if (key == "d")
									{
										dictionary2.Add("螺栓直径", keyValuePair3.Value);
									}
								}
							}
							else if (key == "B")
							{
								dictionary2.Add("基础宽度", keyValuePair3.Value);
							}
						}
						else if (num != 3876335077u)
						{
							if (num == 3977000791u)
							{
								if (key == "h")
								{
									dictionary2.Add("底座板厚度", keyValuePair3.Value);
								}
							}
						}
						else if (key == "b")
						{
							dictionary2.Add("螺栓孔距", keyValuePair3.Value);
						}
					}
					return dictionary2;
				}
			}
			if (pumpdata.strFitRvtName == "4")
			{
				foreach (KeyValuePair<string, string> keyValuePair4 in dictionary)
				{
					string key = keyValuePair4.Key;
					uint num = YArchitech.Revit.PrivateImplementationDetails.ComputeStringHash(key);
					if (num <= 2403021823u)
					{
						if (num <= 1609250850u)
						{
							if (num != 1040194900u)
							{
								if (num == 1609250850u)
								{
									if (key == "Ha")
									{
										dictionary2.Add("基础高度", keyValuePair4.Value);
									}
								}
							}
							else if (key == "PS")
							{
								dictionary2.Add("减震垫规格", keyValuePair4.Value);
							}
						}
						else if (num != 2402036085u)
						{
							if (num == 2403021823u)
							{
								if (key == "h2")
								{
									dictionary2.Add("螺栓孔深", keyValuePair4.Value);
								}
							}
						}
						else if (key == "b2")
						{
							dictionary2.Add("基础宽度", keyValuePair4.Value);
						}
					}
					else if (num <= 3339451269u)
					{
						if (num != 3059570457u)
						{
							if (num == 3339451269u)
							{
								if (key == "B")
								{
									dictionary2.Add("底座直径", keyValuePair4.Value);
								}
							}
						}
						else if (key == "LSK")
						{
							dictionary2.Add("螺栓孔边长", keyValuePair4.Value);
						}
					}
					else if (num != 3775669363u)
					{
						if (num != 3876335077u)
						{
							if (num == 3977000791u)
							{
								if (key == "h")
								{
									dictionary2.Add("底座板厚度", keyValuePair4.Value);
								}
							}
						}
						else if (key == "b")
						{
							dictionary2.Add("螺栓孔距", keyValuePair4.Value);
						}
					}
					else if (key == "d")
					{
						dictionary2.Add("螺栓直径", keyValuePair4.Value);
					}
				}
			}
			return dictionary2;
		}
	}
}
